<?php

namespace app\common\model;

use think\Model;

class PayProject extends Model
{
    // 表名
    protected $name = 'pay_project';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    public function supplier()
    {
        return $this->belongsTo('Company', 'suppliercid', 'id');
    }

    public function paycompany()
    {
        return $this->belongsTo('Company', 'paycid', 'id');
    }
}
